import { connect } from 'react-redux';
import NumUiCom from './numUiCom';

const mapStateToProps = function (state) {
    return {
        val: state.numRenducer.count
    };
};
const mapDispachToProps = function (disPatch) {
    return {
        onclickFunc: name => () =>
            disPatch({
                type: 'counAdd',
                name
            })
    };
};

export default connect(mapStateToProps, mapDispachToProps)(NumUiCom);
